﻿#pragma once
#include "Result.h"
#include "SysCfgDataManage.h"
#include <QObject>
#include <optional>
#include <memory>

class DataCenter : public QObject
{
private:
	DataCenter(QObject* parent = nullptr);
	DataCenter(const DataCenter&) = delete;
	DataCenter& operator=(const DataCenter&) = delete;
public:
	static DataCenter* getInstance()
	{
		static DataCenter instance;
		return &instance;
	}
public:
	//**************************任务数据管理**************************
	//**************************任务参数管理**************************
	//**************************系统配置数据**************************
	std::optional<xiYan::Result> updateSysConfig(QString name);
	//**************************程序运行数据**************************
private:
	std::unique_ptr<SysCfgDataManage> m_sysCfgDataManage{};
};
